package com.xbongbong.workflow.domain.entity;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.enums.DelEnum;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 
 * tb_workflow_backup_data
 * 
 */
@Getter
@Setter
public class WorkflowBackupDataEntity implements Serializable {
    /**
     * 主键
     */
    private Long id;

    /**
     * 公司id
     */
    private String corpid;

    /**
     * 触发表单应用id
     */
    private Long appId;

    /**
     * 触发表单id
     */
    private Long formId;

    /**
     * 触发表单menu_id
     */
    private Long menuId;

    /**
     * 所属工作流id
     */
    private Long workflowId;

    /**
     * 流程任务id
     */
    private Long taskId;

    /**
     * 业务数据id
     */
    private Long dataId;

    /**
     * 备份数据
     */
    private JSONObject data;

    /**
     * 创建时间时间戳（节点进入时间）
     */
    private Long addTime;

    /**
     * 更新时间时间戳
     */
    private Long updateTime;

    /**
     * 删除标记
     */
    private Integer del;

    private static final long serialVersionUID = 1L;


    public WorkflowBackupDataEntity() {
        this.del = DelEnum.NORMAL.getDel();
    }

    public WorkflowBackupDataEntity(String corpid, Long appId, Long formId, Long menuId, Long workflowId, Long taskId, Long dataId, JSONObject data, Long addTime, Long updateTime, Integer del) {
        this.corpid = corpid;
        this.appId = appId;
        this.formId = formId;
        this.menuId = menuId;
        this.workflowId = workflowId;
        this.taskId = taskId;
        this.dataId = dataId;
        this.data = data;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.del = del;
    }
}